/**
 *设置不可选择的日期
 *
 */
function disabled_date(value) {
    var mm = value.year + '-' + value.month + '-' + value.date;
    console.log(mm);
    var dates;
    var config = {
        url: ctx + "fieldManagement/fieldRecord/fieldTime/"+mm+"/"+$("#fieldId").val(),
        type: "get",
        success: function(result) {
            dates=result.data;
            if (dates != null) {
                for (var i = 0; i < dates.length; i++) {
                    $('#layui-laydate1 table tbody').find('[lay-ymd="' + dates[i] + '"]').addClass('laydate-disabled');
                    //记录时间
                    var sdate = dates[i];
                    var date_array = sdate.split("-");
                    //取日期的天比如2017-09-11取11
                    var date_day = date_array[2];
                    var mark = '<span style="color:#666;font-size: 14px;"><i class="fa fa-check" style="color:#6CA; position:absolute; left: 5px;font-size: 28px;z-index:-1;"></i>' + date_day + '</span>';
                    $('#layui-laydate1 table tbody').find('[lay-ymd="' + dates[i] + '"]').html(mark);
                }
            }
        }
    };
    $.ajax(config);
    //$('.laydate-theme-grid table tbody').find('[lay-ymd="' + mm + '"]').removeClass('layui-this');
}

